/**
 * (●'◡'●) Created by xxy on 2017/7/18 17:08
 */

function jsonp(obj) {
    if(!obj.url)return console.error("url is Wrong~");
    if(!obj.success||typeof obj.success!="function")return console.error("success is Wrong~");
    
    
    
    window.Xwudi = function (data) {
        obj.success(data)
    };

    var oS = document.createElement("script");
    oS.src = obj.url;
    document.head.appendChild(oS);
} 
